package com.dreamwhale.machinery.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 资料库
 * </p>
 *
 * @author Author
 * @since 2020-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("vip_article")
public class VipArticle implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    private String title;

    /**
     * 图片
     */
    private String image;

    /**
     * 文档
     */
    private String words;

    /**
     * 描述简介
     */
    private String vipDescribe;

    /**
     * 正文
     */
    private String content;

    /**
     * 是否删除(1.是2.否)
     */
    private Boolean isDel;

    /**
     * 添加时间
     */
    private LocalDateTime createTime;

    /**
     * vip等级要求
     */
    private String vipLv;

    /**
     * 是否热门(1.是2.否)
     */
    private Integer isHot;

    /**
     * 分类id
     */
    private String classifyId;

    /**
     * 品牌id
     */
    private String brandId;

    /**
     * 品牌id
     */
    private String brandName;

    /**
     * 文档名称
     */
    private String wordsName;

    private String wordsSuffix;

    /**
     * 分类名称
     */
    @TableField(exist = false)
    private String classifyName;

    /**
     * 收藏
     */
    @TableField(exist = false)
    private Integer collect;

    /**
     * 收藏id
     */
    @TableField(exist = false)
    private Integer collectId;


}
